'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:AddressbookUserdetailCtrl
 * @description
 * # AddressbookUserdetailCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('AddressbookUserdetailCtrl', function($routeParams, DataService, RongYService, openApi, Util) {
        var vm = this;
        var param = {};
        param.userId = $routeParams.userId;
        DataService.getData(openApi.getUserDetail, param).then(function(data) {
            vm.userinfo = data
        })
        this.gochatroom = function() {
            // Util.Toast("正在开发中...")
            RongYService.goPravite($routeParams.userId)
        }
    });
